home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak Vol A-4
/
(Vol A-4) Vol. A4.iso
/
Games
/
loa_and_the_island.swf
/
scripts
/
frame_212
/
PlaceObject2_966_1515
/
CLIPACTIONRECORD onClipEvent(enterFrame).as
Wrap
Text File
|
2008-03-17
|
628b
|
27 lines
onClipEvent(enterFrame){
if(_root.paused == false)
{
if(_global.health <= 0)
{
_root.level.sprite.gotoAndStop("dead");
_root.paused = true;
}
if(_global.health > _global.maxhealth)
{
_global.health = _global.maxhealth;
}
if(_global.difficulty == "normal")
{
gotoAndStop(211, _global.health * 5);
}
if(_global.difficulty == "easy")
{
gotoAndStop(211, _global.health);
}
if(_global.difficulty == "hard")
{
gotoAndStop(211, _global.health * 10);
}
}
}